Repository navigation
fix: defects found by review of #426–#432 - #433
Open
codecaaron wants to merge 3 commits into
Open
codecaaron wants to merge 3 commits into
codecaaron wants to merge 3 commits into
Conversation
staticCss stopped protecting a variant with no defaultVariant once such variants were tracked: forced usage was only injected when a default existed. It is now always injected. A registered view transition was dropped in production unless a named import resolved to an analysed file, so a namespace import, a dynamic import or a system imported from a package lost its CSS. A collection is now kept whole whenever its use cannot be bounded, reusing the signal that already turns component pruning off. An unsupported at-rule was reported at its block's opening brace with the block's source as the value; it is reported at the at-rule's key. The unsupported-feature value field has one form, a failing theme-values script no longer fails the system load, and opacity modifiers in the theme values follow the Rust rules. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ects fromDTCG: a document typed as a JSON import no longer loses its scales to typography inference; group $type resolves across the sources, sets and contexts of a resolver document; a path that is a token in one layer and a group in another is rejected instead of dropping the token. toDTCG: a stored hex is reused only while its colour is unchanged; an aliased token takes its target's type; one-layer shadow lists and $root-only typography groups survive; out-of-range alpha and cubic-bezier values and upper-case units are refused with the token path. Contracts: a boolean variant condition and its string form are equivalent and match a boolean or string prop, in the types and at run time in both bindings; before, React threw and Effect UI never matched. addColorModes rejects a mode alias that references an earlier mode alias, as the run time always did. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…d, MCP versions A map composed with an incoming map keeps its sourceRoot and ignore lists and leaves code the incoming map does not cover unmapped. Hosts get a map when a define substitution or a stylesheet import moves code in a file the engine did not transform, and no map when the code they pass differs from the analysed source. animus check and the MCP check_source tool run through the same analysis path as the build, so they report the build's custom-property, system and kit diagnostics and use the same resolution evidence. The MCP server advertises only the current protocol revision as supported and accepts batches for clients that negotiated 2025-03-26. Verified at this commit: vp run verify:full (55 of 55 tasks) and the effect-ui app's verify. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes for defects found by an independent review of everything merged in #426 to #432. Three reviewers read the diff cold, one area each; most findings came with a reproduction. Every fix here has a test that was written first and seen to fail for the stated reason.
Extractor
staticCssstopped protecting a variant with nodefaultVariant. feat!: faster style-object types; sound pruning of unused options #429 began tracking such variants, but forced usage was only injected when a default existed. A component forced with"variants": "*"kept no options. Forced usage is now always injected; it can only add options to the kept set.value. It is reported at the at-rule's key.valuefield has one form; a failing theme-values script no longer fails the system load; opacity modifiers in the theme values follow the Rust rules.Core, React, Effect UI
fromDTCGon a JSON import lost its scales. A$typewidened tostringmatched the typography test, so every group became a declaration scale and the theme type had nocolorskey. Such a document now keeps every scale with its real keys.when: { flag: true }threw on every render in React and never matched in Effect UI; in the types it made the obligation unconditional.trueand'true'are now equivalent and match a boolean or string prop, in both bindings.$typeresolves across sources, sets and contexts, as DTCG Resolver §6.2 requires. A path that is a token in one layer and a group in another is rejected instead of silently dropping the token.hexis reused only while its colour is unchanged; a token that became an alias takes its target's type; one-layer shadow lists and$root-only typography groups survive; out-of-range alpha and cubic-bezier values and upper-case units are refused with the token path.addColorModesrejects a mode alias that references an earlier mode alias; the run time always did.Pipeline, plugins, CLI
sourceRootand ignore lists, and leaves code the incoming map does not cover unmapped instead of attributing it to position 0:0.__ANIMUS_DEV__in a file the engine did not transform (Rollup treated the missing map as "nothing moved": a token mapped to column 36 when it was at 45); the Next loaders return one when they add or remove the stylesheet import. No map is returned when the code a host passes differs from the analysed source.animus checkand MCPcheck_sourcedisagreed with the build in both directions:checkmissed a custom-property finding the build reported and reported an unresolved import the build did not. Both now run through the build's analysis path.animus mcpadvertises only the current protocol revision as supported, and accepts JSON-RPC batches for clients that negotiated2025-03-26.Left as they are
asComponent(...)andas={Component}, the types apply everywhenTagrule's obligations, while the run time, which cannot know the tag, skips those rules' attributes..extend(builtTheme), a mode alias referencing an inherited mode alias still type-checks and fails at run time.Verification
vp run verify:fullpasses at10761aa9: 55 of 55 tasks, with 592 TypeScript tests, 413 Rust tests and 289 integration tests.@animus-ui/effect-ui-app#verifypasses. The parity baselines are unchanged.🤖 Generated with Claude Code